package com.lagou.utils;

/**
 * @ClassName: IpUtils
 * @Auther: Jerry
 * @Date: 2020/10/18 23:25
 * @Desctiption: TODO
 * @Version: 1.0
 */
public class IpUtils {
    private static final ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<>();

    public static void setThreadLocalIp(String localIp) {
        THREAD_LOCAL.set(localIp);
    }

    public static String getThreadLocalIp(){
        return THREAD_LOCAL.get();
    }
}
